#include "Feats.h"

using namespace std;

Feats::Feats()
{
	name = description = bonuses = "";
	level = 0;
	experience = 0;
	//ctor
}

Feats::Feats( string s, string d, string b )
{
	name = s;
	description = d;
	bonuses = b;
	level = 0;
	experience = 0;
}

Feats::~Feats()
{
	//dtor
}

/*levelUp(ins s) to be used when leveling up with remaining experience.
Level goes up and experience gets reduced by experience required to level (unless set to 0 where experience is saved for engine purposes).
*/
void
Feats::levelUp( int s )
{
	experience -= s;
	level++;
}

/*addLevel() to be used when level up is gained and no change to feat experience made.

*/
void
Feats::addLevel()
{
	++level;
}

/*addLevels(int s) to be used to gain multiple levels.
Level goes up by value inputted.
*/
void
Feats::addLevels(int s)
{
	level += s;
}

/*levelUp() to be used for leveling up with no remaining experience.
Level goes up and experience gets reset.
*/
void
Feats::levelUp()
{
	++level;
	//exp = 0;
}
